package net.betou.trade.main.dao;

import java.util.List;

import net.betou.common.hibernate3.Updater;
import net.betou.common.page.Pagination;
import net.betou.trade.entity.main.Content;

/**
 * 内容DAO接口。
 * 
 * 用于的排序参数
 * 
 * @author 叶装装
 * 
 */
public interface ContentDao{
	
	public Content save( Content bean );
	
	public Content deleteById( Integer id );
	
	public Content updateByUpdater( Updater< Content > updater );
	
	public Content findById( Integer id );
	
	public Content findMyContent( Integer id, Integer selfId );
	
	public Pagination getPage( Integer selfId, String searchProperty, String searchValue, String orderProperty, String orderDirection, int pageNo, int pageSize );
	
	public Pagination getPageByCriteria( String searchProperty, String searchValue, String orderProperty, String orderDirection, int pageNo, int pageSize, String sql );
	
	public Pagination getPage(   Integer groupId, List< Integer > channelIdList, int pageNo, int pageSize );
}